package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.ForeclosedHouseBookingorderFollowerMapper;
import com.ruoyi.yipaiju.domain.ForeclosedHouseBookingorderFollower;
import com.ruoyi.yipaiju.service.IForeclosedHouseBookingorderFollowerService;

/**
 * fo_foreclosed_house_bookingorder_followerService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class ForeclosedHouseBookingorderFollowerServiceImpl implements IForeclosedHouseBookingorderFollowerService 
{
    @Autowired
    private ForeclosedHouseBookingorderFollowerMapper foreclosedHouseBookingorderFollowerMapper;

    /**
     * 查询fo_foreclosed_house_bookingorder_follower
     * 
     * @param id fo_foreclosed_house_bookingorder_follower主键
     * @return fo_foreclosed_house_bookingorder_follower
     */
    @Override
    public ForeclosedHouseBookingorderFollower selectForeclosedHouseBookingorderFollowerById(Long id)
    {
        return foreclosedHouseBookingorderFollowerMapper.selectForeclosedHouseBookingorderFollowerById(id);
    }

    /**
     * 查询fo_foreclosed_house_bookingorder_follower列表
     * 
     * @param foreclosedHouseBookingorderFollower fo_foreclosed_house_bookingorder_follower
     * @return fo_foreclosed_house_bookingorder_follower
     */
    @Override
    public List<ForeclosedHouseBookingorderFollower> selectForeclosedHouseBookingorderFollowerList(ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollower)
    {
        return foreclosedHouseBookingorderFollowerMapper.selectForeclosedHouseBookingorderFollowerList(foreclosedHouseBookingorderFollower);
    }

    /**
     * 根据业务主键查询一条记录：fo_foreclosed_house_bookingorder_follower
     *
     * @param foreclosedHouseBookingorderFollower fo_foreclosed_house_bookingorder_follower
     * @return fo_foreclosed_house_bookingorder_follower
     */
    @Override
    public ForeclosedHouseBookingorderFollower selectOneForeclosedHouseBookingorderFollower(ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollower)
    {
        return foreclosedHouseBookingorderFollowerMapper.selectOneForeclosedHouseBookingorderFollower(foreclosedHouseBookingorderFollower);
    }

    /**
     * 新增fo_foreclosed_house_bookingorder_follower
     * 
     * @param foreclosedHouseBookingorderFollower fo_foreclosed_house_bookingorder_follower
     * @return 结果
     */
    @Override
    public int insertForeclosedHouseBookingorderFollower(ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollower)
    {
        foreclosedHouseBookingorderFollower.setCreateTime(DateUtils.getNowDate());
        return foreclosedHouseBookingorderFollowerMapper.insertForeclosedHouseBookingorderFollower(foreclosedHouseBookingorderFollower);
    }

    /**
     * 修改fo_foreclosed_house_bookingorder_follower
     * 
     * @param foreclosedHouseBookingorderFollower fo_foreclosed_house_bookingorder_follower
     * @return 结果
     */
    @Override
    public int updateForeclosedHouseBookingorderFollower(ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollower)
    {
        foreclosedHouseBookingorderFollower.setUpdateTime(DateUtils.getNowDate());
        return foreclosedHouseBookingorderFollowerMapper.updateForeclosedHouseBookingorderFollower(foreclosedHouseBookingorderFollower);
    }

    @Override
    public int updateForeclosedHouseBookingorderFollowerCondition(ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollower, ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollowerCondition)
    {
                foreclosedHouseBookingorderFollower.setUpdateTime(DateUtils.getNowDate());
        return foreclosedHouseBookingorderFollowerMapper.updateForeclosedHouseBookingorderFollowerCondition(foreclosedHouseBookingorderFollower, foreclosedHouseBookingorderFollowerCondition);
    }

    /**
     * 批量删除fo_foreclosed_house_bookingorder_follower
     * 
     * @param ids 需要删除的fo_foreclosed_house_bookingorder_follower主键
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseBookingorderFollowerByIds(Long[] ids)
    {
        return foreclosedHouseBookingorderFollowerMapper.deleteForeclosedHouseBookingorderFollowerByIds(ids);
    }

    /**
     * 删除fo_foreclosed_house_bookingorder_follower信息
     * 
     * @param id fo_foreclosed_house_bookingorder_follower主键
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseBookingorderFollowerById(Long id)
    {
        return foreclosedHouseBookingorderFollowerMapper.deleteForeclosedHouseBookingorderFollowerById(id);
    }

    /**
     * 条件删除fo_foreclosed_house_bookingorder_follower
     *
     * @param foreclosedHouseBookingorderFollower fo_foreclosed_house_bookingorder_follower
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseBookingorderFollowerByCondition(ForeclosedHouseBookingorderFollower foreclosedHouseBookingorderFollower)
    {
        return foreclosedHouseBookingorderFollowerMapper.deleteForeclosedHouseBookingorderFollowerByCondition(foreclosedHouseBookingorderFollower);
    }

}
